package hong.jun.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    //登录成功后重定向地址
    @RequestMapping("/loginSuccess")
    public String tologin() {
        return "登录成功";
    }

    @GetMapping("/employee/save")
    public String employesave() {
        return "员工储存成功";
    }

    @GetMapping("/employee/delete")
    public String employeedelete() {
        return "员工删除成功";
    }

    @GetMapping("/user/save")
    public String usersave() {
        return "用户储存成功";
    }

    @GetMapping("/user/delete")
    public String userdelete() {
        return "用户删除成功";
    }

    @GetMapping("/test/Universal")
    public String testUniversal() {
        return "通用";
    }
}
